/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.evangelion.core.serviceImpl;

import com.evangelion.core.bean.Proveedor;
import com.evangelion.core.bean.Seccione;
import com.evangelion.core.dao.ProveedorDao;
import com.evangelion.core.service.ProveedorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author Kellycasma
 */
@Service("proveedorService")
public class ProveedorServiceImpl implements ProveedorService {

    @Autowired
    private ProveedorDao proveedorDao;

    @Override
    public void save(Proveedor proveedor) {
        proveedorDao.save(proveedor);
    }

    @Override
    public void delete(Proveedor proveedor) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Proveedor find(Proveedor proveedor) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Proveedor findObjByParam(String parametro, String valor) throws Exception {
        return proveedorDao.findObjByParam(parametro, valor);
    }

    @Override
    public List<Proveedor> findByParam(String parametro, String valor) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<Proveedor> ListActive(Proveedor proveedor) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public List<Proveedor> searchByCifNombre(Seccione seccion, String valor) {
        return proveedorDao.searchByCifNombre(seccion, valor);
    }

    @Override
    public List<Proveedor> findListByParam(String parametro, String valor) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
